<?php
namespace app\admin\behavior;
class AdminLog
{
    public function run($params){
        //print_r($str);exit;
        if (request()->isPost()) {
            \app\admin\model\AdminLog::record();
        }
    }
    public function app_end(&$params)
    {
        if (request()->isPost()) {
            \app\admin\model\AdminLog::record();
        }
    }
}
